package com.testplatfrom.project.domain;


public enum  AssertionPositionEnum {
    RESPONSEDATA("响应体","Response Data"),
    RESPONSECODE("响应码","Response Code"),
    RESPONSEHEADERS("响应头","Response Headers")
    ;

    private String message;

    private String position;

    AssertionPositionEnum(String message, String position) {
        this.message = message;
        this.position = position;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    @Override
    public String toString() {
        return "AssertionPositionEnum{" +
                "message='" + message + '\'' +
                ", position='" + position + '\'' +
                '}';
    }

    public static AssertionPositionEnum getByValue(String position){
        for (AssertionPositionEnum assertMethodsType:values()){
            if (position.equals(assertMethodsType.getPosition())){
                return assertMethodsType;
            }
        }
        return null;
    }
}
